Skip to content

test: cover camera switch teardown#24

Merged
bm12 merged 2 commits intomasterfrom
codex/add-tests-for-uselocalmedia-with-vitest
Sep 22, 2025
Merged

test: cover camera switch teardown#24
bm12 merged 2 commits intomasterfrom
codex/add-tests-for-uselocalmedia-with-vitest

Conversation

@bm12
Copy link
Copy Markdown
Owner

@bm12 bm12 commented Sep 22, 2025

Summary

  • add a Vitest hook test for useLocalMedia.switchCamera
  • stub navigator.mediaDevices.getUserMedia to confirm the previous track is stopped before resolving
  • verify that successful switches attach the new track and refresh devices

Testing

  • npm --prefix frontend run test

https://chatgpt.com/codex/tasks/task_e_68d1d46dfffc832a81422e7804853d6b

@bm12 bm12 merged commit 4c04739 into master Sep 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant